<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__crypto__lld__sha__functions.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Functions<div class="ingroups"><a class="el" href="group__group__crypto.html">Crypto       (Cryptography)</a> &raquo; <a class="el" href="group__group__crypto__lld__api.html">Direct Crypto Core Access</a> &raquo; <a class="el" href="group__group__crypto__lld__sha.html">Hash Operations (SHA)</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga3023d5535203528b0ef7136c86f8a66c"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE <a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__crypto__lld__sha__functions.html#ga3023d5535203528b0ef7136c86f8a66c">Cy_Crypto_Core_Sha</a> (CRYPTO_Type *base, uint8_t const *message, uint32_t messageSize, uint8_t *digest, <a class="el" href="group__group__crypto__enums.html#ga66ead9efce36e261e978cad722bf2dbb">cy_en_crypto_sha_mode_t</a> <a class="el" href="group__group__ipc__bt__data__structures.html#ga37e90f5e3bd99fac2021fb3a326607d4">mode</a>)</td></tr>
<tr class="memdesc:ga3023d5535203528b0ef7136c86f8a66c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs the SHA Hash function.  <a href="#ga3023d5535203528b0ef7136c86f8a66c">More...</a><br /></td></tr>
<tr class="separator:ga3023d5535203528b0ef7136c86f8a66c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad1e5bb1a8750ebe9d6e20f9e59b1fe86"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE <a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__crypto__lld__sha__functions.html#gad1e5bb1a8750ebe9d6e20f9e59b1fe86">Cy_Crypto_Core_Sha_Init</a> (CRYPTO_Type *base, <a class="el" href="structcy__stc__crypto__sha__state__t.html">cy_stc_crypto_sha_state_t</a> *shaHashState, <a class="el" href="group__group__crypto__enums.html#ga66ead9efce36e261e978cad722bf2dbb">cy_en_crypto_sha_mode_t</a> <a class="el" href="group__group__ipc__bt__data__structures.html#ga37e90f5e3bd99fac2021fb3a326607d4">mode</a>, void *shaBuffers)</td></tr>
<tr class="memdesc:gad1e5bb1a8750ebe9d6e20f9e59b1fe86"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function to initialize the SHA operation.  <a href="#gad1e5bb1a8750ebe9d6e20f9e59b1fe86">More...</a><br /></td></tr>
<tr class="separator:gad1e5bb1a8750ebe9d6e20f9e59b1fe86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga62be705040b568d8b931517538fdf1e4"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE <a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__crypto__lld__sha__functions.html#ga62be705040b568d8b931517538fdf1e4">Cy_Crypto_Core_Sha_Start</a> (CRYPTO_Type *base, <a class="el" href="structcy__stc__crypto__sha__state__t.html">cy_stc_crypto_sha_state_t</a> *hashState)</td></tr>
<tr class="memdesc:ga62be705040b568d8b931517538fdf1e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the initial Hash vector.  <a href="#ga62be705040b568d8b931517538fdf1e4">More...</a><br /></td></tr>
<tr class="separator:ga62be705040b568d8b931517538fdf1e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5dcb08460b06dc413fad844b24d0a0d9"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE <a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__crypto__lld__sha__functions.html#ga5dcb08460b06dc413fad844b24d0a0d9">Cy_Crypto_Core_Sha_Update</a> (CRYPTO_Type *base, <a class="el" href="structcy__stc__crypto__sha__state__t.html">cy_stc_crypto_sha_state_t</a> *hashState, uint8_t const *message, uint32_t messageSize)</td></tr>
<tr class="memdesc:ga5dcb08460b06dc413fad844b24d0a0d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs the SHA calculation on one message.  <a href="#ga5dcb08460b06dc413fad844b24d0a0d9">More...</a><br /></td></tr>
<tr class="separator:ga5dcb08460b06dc413fad844b24d0a0d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga057902d294bfe3704b2ee7c61af828a5"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE <a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__crypto__lld__sha__functions.html#ga057902d294bfe3704b2ee7c61af828a5">Cy_Crypto_Core_Sha_Finish</a> (CRYPTO_Type *base, <a class="el" href="structcy__stc__crypto__sha__state__t.html">cy_stc_crypto_sha_state_t</a> *hashState, uint8_t *digest)</td></tr>
<tr class="memdesc:ga057902d294bfe3704b2ee7c61af828a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Completes the SHA calculation.  <a href="#ga057902d294bfe3704b2ee7c61af828a5">More...</a><br /></td></tr>
<tr class="separator:ga057902d294bfe3704b2ee7c61af828a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab2d5d01e75015c590fb55f13179a1835"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE <a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__crypto__lld__sha__functions.html#gab2d5d01e75015c590fb55f13179a1835">Cy_Crypto_Core_Sha_Free</a> (CRYPTO_Type *base, <a class="el" href="structcy__stc__crypto__sha__state__t.html">cy_stc_crypto_sha_state_t</a> *hashState)</td></tr>
<tr class="memdesc:gab2d5d01e75015c590fb55f13179a1835"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the used memory buffers.  <a href="#gab2d5d01e75015c590fb55f13179a1835">More...</a><br /></td></tr>
<tr class="separator:gab2d5d01e75015c590fb55f13179a1835"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga3023d5535203528b0ef7136c86f8a66c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3023d5535203528b0ef7136c86f8a66c">&#9670;&nbsp;</a></span>Cy_Crypto_Core_Sha()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE <a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a> Cy_Crypto_Core_Sha </td>
          <td>(</td>
          <td class="paramtype">CRYPTO_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t const *&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>messageSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>digest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__crypto__enums.html#ga66ead9efce36e261e978cad722bf2dbb">cy_en_crypto_sha_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs the SHA Hash function. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the CRYPTO instance.</td></tr>
    <tr><td class="paramname">mode</td><td><a class="el" href="group__group__crypto__enums.html#ga66ead9efce36e261e978cad722bf2dbb">cy_en_crypto_sha_mode_t</a></td></tr>
    <tr><td class="paramname">message</td><td>The pointer to the message whose hash value is being computed.</td></tr>
    <tr><td class="paramname">messageSize</td><td>The size of the message.</td></tr>
    <tr><td class="paramname">digest</td><td>The pointer to the hash digest.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a></dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    uint8_t sha256PlainText[3]  = <span class="stringliteral">&quot;abc&quot;</span>;</div><div class="line">    uint8_t sha256Digest[<a class="code" href="group__group__crypto__cli__srv__macros.html#ga82ff1a7671e4f0cf2026cbda5ef7e12a">CY_CRYPTO_SHA256_DIGEST_SIZE</a>] = {0};</div><div class="line"></div><div class="line">    <a class="code" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a> cryptoStatus;</div><div class="line"></div><div class="line">    <span class="comment">/* Hash the message by SHA256 */</span></div><div class="line">    cryptoStatus = <a class="code" href="group__group__crypto__lld__sha__functions.html#ga3023d5535203528b0ef7136c86f8a66c">Cy_Crypto_Core_Sha</a>(</div><div class="line">                             CRYPTO_HW,        <span class="comment">/* Pointer to Crypto instance */</span></div><div class="line">                             sha256PlainText,          <span class="comment">/* Pointer to message */</span></div><div class="line">                             <span class="keyword">sizeof</span>(sha256PlainText),        <span class="comment">/* Message size */</span></div><div class="line">                             sha256Digest,       <span class="comment">/* Pointer to digest buffer */</span></div><div class="line">                             <a class="code" href="group__group__crypto__enums.html#gga66ead9efce36e261e978cad722bf2dbba2212390919051b39d22d567c508c6d1f">CY_CRYPTO_MODE_SHA256</a>);            <span class="comment">/* Hash mode */</span></div><div class="line"></div><div class="line">    <span class="comment">/* ... check for errors... */</span></div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gad1e5bb1a8750ebe9d6e20f9e59b1fe86"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad1e5bb1a8750ebe9d6e20f9e59b1fe86">&#9670;&nbsp;</a></span>Cy_Crypto_Core_Sha_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE <a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a> Cy_Crypto_Core_Sha_Init </td>
          <td>(</td>
          <td class="paramtype">CRYPTO_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__crypto__sha__state__t.html">cy_stc_crypto_sha_state_t</a> *&#160;</td>
          <td class="paramname"><em>shaHashState</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__crypto__enums.html#ga66ead9efce36e261e978cad722bf2dbb">cy_en_crypto_sha_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>shaBuffers</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The function to initialize the SHA operation. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the CRYPTO instance.</td></tr>
    <tr><td class="paramname">shaHashState</td><td>The pointer to a Hash state.</td></tr>
    <tr><td class="paramname">mode</td><td>One of these: <a class="el" href="group__group__crypto__enums.html#ga66ead9efce36e261e978cad722bf2dbb">cy_en_crypto_sha_mode_t</a></td></tr>
    <tr><td class="paramname">shaBuffers</td><td>The pointer to the memory buffers storage. Can be one of two buffers types according to selected hardware platform: cy_stc_crypto_v1_sha_buffers_t or cy_stc_crypto_v2_sha_buffers_t</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a> </dd></dl>

</div>
</div>
<a id="ga62be705040b568d8b931517538fdf1e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga62be705040b568d8b931517538fdf1e4">&#9670;&nbsp;</a></span>Cy_Crypto_Core_Sha_Start()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE <a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a> Cy_Crypto_Core_Sha_Start </td>
          <td>(</td>
          <td class="paramtype">CRYPTO_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__crypto__sha__state__t.html">cy_stc_crypto_sha_state_t</a> *&#160;</td>
          <td class="paramname"><em>hashState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the initial Hash vector. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the CRYPTO instance.</td></tr>
    <tr><td class="paramname">hashState</td><td>The pointer to the SHA context.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a> </dd></dl>

</div>
</div>
<a id="ga5dcb08460b06dc413fad844b24d0a0d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5dcb08460b06dc413fad844b24d0a0d9">&#9670;&nbsp;</a></span>Cy_Crypto_Core_Sha_Update()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE <a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a> Cy_Crypto_Core_Sha_Update </td>
          <td>(</td>
          <td class="paramtype">CRYPTO_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__crypto__sha__state__t.html">cy_stc_crypto_sha_state_t</a> *&#160;</td>
          <td class="paramname"><em>hashState</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t const *&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>messageSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs the SHA calculation on one message. </p>
<p>For CAT1C &amp; CAT1D(CM55) devices when D-Cache is enabled parameter message must align and end in 32 byte boundary.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the CRYPTO instance.</td></tr>
    <tr><td class="paramname">hashState</td><td>The pointer to the SHA context.</td></tr>
    <tr><td class="paramname">message</td><td>The pointer to the message whose Hash is being computed.</td></tr>
    <tr><td class="paramname">messageSize</td><td>The size of the message whose Hash is being computed.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a></dd></dl>
<dl class="section note"><dt>Note</dt><dd>This function can be called several times only with message lengths dividable by the block size. Only the last call to the function can process a message with a not-dividable size. </dd></dl>

</div>
</div>
<a id="ga057902d294bfe3704b2ee7c61af828a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga057902d294bfe3704b2ee7c61af828a5">&#9670;&nbsp;</a></span>Cy_Crypto_Core_Sha_Finish()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE <a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a> Cy_Crypto_Core_Sha_Finish </td>
          <td>(</td>
          <td class="paramtype">CRYPTO_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__crypto__sha__state__t.html">cy_stc_crypto_sha_state_t</a> *&#160;</td>
          <td class="paramname"><em>hashState</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>digest</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Completes the SHA calculation. </p>
<p>For CAT1C &amp; CAT1D(CM55) devices when D-Cache is enabled parameter digest must align and end in 32 byte boundary.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the CRYPTO instance.</td></tr>
    <tr><td class="paramname">hashState</td><td>The pointer to the SHA context.</td></tr>
    <tr><td class="paramname">digest</td><td>The pointer to the calculated Hash digest.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a> </dd></dl>

</div>
</div>
<a id="gab2d5d01e75015c590fb55f13179a1835"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab2d5d01e75015c590fb55f13179a1835">&#9670;&nbsp;</a></span>Cy_Crypto_Core_Sha_Free()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE <a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a> Cy_Crypto_Core_Sha_Free </td>
          <td>(</td>
          <td class="paramtype">CRYPTO_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__crypto__sha__state__t.html">cy_stc_crypto_sha_state_t</a> *&#160;</td>
          <td class="paramname"><em>hashState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the used memory buffers. </p>
<p>For CAT1C &amp; CAT1D(CM55) devices when D-Cache is enabled parameter hashState must align and end in 32 byte boundary. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the CRYPTO instance.</td></tr>
    <tr><td class="paramname">hashState</td><td>The pointer to the SHA context.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__crypto__enums.html#ga3a65158da3dc5cb6aa016ae599542aad">cy_en_crypto_status_t</a> </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
